package cn.wdm.ymcc.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class SubmitOrderParamVo {
    @NotEmpty(message = "课程的Id不能为空")
    private List<Long> courseIds;
    @NotNull(message = "支付方式为空")
    private Integer payType;//支付方式  1 支付宝 2银联 3微信
    @NotNull(message = "订单类型为空")
    private Integer type;//0代表普通订单，1代表秒杀订单
    @NotEmpty(message = "token为空")
    private String token;
}
